From bd98c49215cf6d9552c5f6fbeda27777bbcea23d Mon Sep 17 00:00:00 2001 From: Taku Kudo Date: Wed, 8 Jun 2022 16:38:21 +0900 Subject: [PATCH] remove debug symbols from wheel package Signed-off-by: Kentaro Hayashi Gbp-Pq: Name 0002-remove-debug-symbols-from-wheel-package.patch --- python/setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/setup.py b/python/setup.py index cfbf0db..198cba7 100755 --- a/python/setup.py +++ b/python/setup.py @@ -93,6 +93,9 @@ class build_ext(_build_ext): # See: https://github.com/neulab/xnmt/issues/199 if sys.platform == 'darwin': cflags.append('-mmacosx-version-min=10.9') + else: + cflags.append('-Wl,-strip-all') + libs.append('-Wl,-strip-all') print('## cflags={}'.format(' '.join(cflags))) print('## libs={}'.format(' '.join(libs))) ext.extra_compile_args = cflags -- 2.30.2